package com.library.system.domain.vo.datapanel;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Package: com.library.system.domain.vo.datapanel
 * @ClassName: SysDataPanelReturnBookCountVo
 * @Author: Yin
 * @Date: 18:24
 * @Description: 数据面板 归还统计
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysDataPanelReturnBookCountVo {

    /** 年份 / 月份 / 每天 统计 */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String name;

    /** 归还数量 */
    @JsonProperty("value")
    private Long returns;

    public static SysDataPanelReturnBookCountVo empty(String date) {
        return new SysDataPanelReturnBookCountVo(date,0L);
    }
}
